package com.haiyou.common.util.time;


public enum DateUnit {
	MS(1), 
	SECOND(1000), 
	MINUTE(SECOND.getMillis() * 60),
	HOUR(MINUTE.getMillis() * 60),
	DAY(HOUR.getMillis() * 24),
	WEEK(DAY.getMillis() * 7);
	
	private long millis;
	DateUnit(long millis){
		this.millis = millis;
	}
	
	public long getMillis(){
		return this.millis;
	}
}
